package org.jeecg.modules.exChargeSetting.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.exChargeSetting.entity.ExChargeSetting;
import org.jeecg.modules.exChargeSetting.mapper.ExChargeSettingMapper;
import org.jeecg.modules.exChargeSetting.service.IExChargeSettingService;
import org.springframework.stereotype.Service;

/**
 * @Description: 资费设置
 * @Author: jeecg-boot
 * @Date:   2024-09-03
 * @Version: V1.0
 */
@Service
public class ExChargeSettingServiceImpl extends ServiceImpl<ExChargeSettingMapper, ExChargeSetting> implements IExChargeSettingService {

    @Override
    public ExChargeSetting getByProjectId(String projectId) {
        LambdaQueryWrapper<ExChargeSetting> query = new LambdaQueryWrapper<ExChargeSetting>()
                .eq(ExChargeSetting::getProjectId, projectId);
        return this.getOne(query);
    }
}
